package cc.cix.gt.org.dto.response;

import cc.cix.gt.org.entity.LoginLog;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author cix
 */
@Data
@Builder(toBuilder = true)
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "IndexVO对象", description = "首页统计数据")
public class IndexResp {

    @ApiModelProperty("总访问次数")
    private Long totalVisitCount;

    @ApiModelProperty("今日访问次数")
    private Long todayVisitCount;

    @ApiModelProperty("今日访问 IP 数")
    private Long todayIp;

    @ApiModelProperty("获取近10天访问记录")
    private List<LoginLog> lastTenVisitCount;

    @ApiModelProperty("获取近10天当前用户的访问记录")
    private List<LoginLog> lastTenUserVisitCount;

}
